//百度js推送
//LFL 2018-07-25 14:03:11
function baidu_js_push(){
	var nowurl=window.location.href;
	//LFL 2018-07-25 13:58:36 
	//排除动态页和带参数页面
	if(nowurl.indexOf("?") != -1){
		//alert("不推送");
		return false;
	}
	var bp = document.createElement('script');
	var curProtocol = window.location.protocol.split(':')[0];
	if (curProtocol === 'https') {
		bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
	}
	else {
		bp.src = 'http://push.zhanzhang.baidu.com/push.js';
	}
	var s = document.getElementsByTagName("script")[0];
	s.parentNode.insertBefore(bp, s);
}

//百度统计
//LFL 2018-07-25 14:23:14
function baidu_statistics(){
	document.writeln("<div style=\'display:none\'>");
	document.writeln("<script>");
	document.writeln("var _hmt = _hmt || [];");
	document.writeln("(function() {");
	document.writeln("  var hm = document.createElement(\'script\');");
	document.writeln("  hm.src = \'https://hm.baidu.com/hm.js?76aaf5db1b7a0681125daae91028b78e\';");
	document.writeln("  var s = document.getElementsByTagName(\'script\')[0]; ");
	document.writeln("  s.parentNode.insertBefore(hm, s);");
	document.writeln("})();");
	document.writeln("</script>");
}

//360js推送
//LFL 2018-08-31 09:58:01
function qihu_js_push(){
	var nowurl=window.location.href;
	//LFL 2018-07-25 13:58:36 
	//排除动态页和带参数页面
	if(nowurl.indexOf("?") != -1){
		//alert("不推送");
		return false;
	}
	(function(){
	var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?54405c2e0c0bd32c821b41bdc388dcc1":"https://jspassport.ssl.qhimg.com/11.0.1.js?54405c2e0c0bd32c821b41bdc388dcc1";
	document.write('<script src="' + src + '" id="sozz"><\/script>');
	})();
}

//执行百度js推送
baidu_js_push();
//执行百度统计
baidu_statistics();
//执行360js推送
qihu_js_push();